import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:ost_flutter_module/class/store/address_page/bloc/address_page_bloc.dart';
import 'package:ost_flutter_module/class/store/address_page/store_address_page_body.dart';
import 'package:ost_flutter_module/common/styles.dart';
import 'package:ost_flutter_module/widget/custom_widget/custome_scaffold.dart';

class StoreAddressPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return BlocProvider<AddressPageBloc>(
      create: (context) => AddressPageBloc()..add(AddressPageFetchData()),
      child: GScaffold(
        title: Text('地址管理', style: TextStyles.appBarTitleStyle),
        body: StoreAddressPageBody(),
      ),
    );
  }
}
